package cn.isaac.firstkotlin.domain

/**
 * Created by RaoWei on 2017/5/22 10:07.
 */

class RequestForecastCommand(private val zipCode: String) : Command<ForecastList> {
    override fun execute(): ForecastList {
        val forecastRequest = ForecastRequest(zipCode)
        return ForecastDataMapper().convertFromDataModel(forecastRequest.execute())
    }

}